<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.limao.CacheManager.OrderInfo"%>
<%@page import="com.iapppay.web.IAppPaySDKConfig"%>
<%@ page import="java.util.*"%>

<%
    //爱贝
    System.out.println("爱贝通知 0……");
    request.setCharacterEncoding("utf-8"); 
    String transdata = request.getParameter("transdata"); 
    String sign = (String) request.getParameter("sign"); 
    String signtype = request.getParameter("signtype"); 
    Map<String,String> params = new HashMap<String,String>();  
    params.put("transdata", transdata); 
    params.put("sign", sign); 
    params.put("signtype", signtype); 
    
    params.put("PLATP_KEY", IAppPaySDKConfig.PLATP_KEY); 
    
    System.out.println("爱贝通知 1……");
    if(signtype==null)
    {
    	out.println("fail");
    	System.out.println("爱贝通知 2……fail0000");
    	return;
    }
	if(OrderInfo.OnlinePay_return("4",params)){//验证成功
		//请在这里加上商户的业务逻辑程序代码
		//——请根据您的业务逻辑来编写程序（以下代码仅作参考）——
		out.println("success");	//请不要修改或删除
		System.out.println("爱贝通知 2……success");
	 }else{//验证失败
		out.println("fail");
		System.out.println("爱贝通知 2……fail");
	 }
	
%>
